<template>
  <div class="step3-container">
    <div class="container">
      <span class="step-number">STEP 3/4</span>
      <span class="step-title">Tell about your company</span>
      <div class="step3-select-container">
        <p class="select-tip">Your Company's Name</p>
        <el-input v-model="input" style="width: 400px" size="large" placeholder="Please input" />
      </div>
      <div class="step3-select-container">
        <p class="select-tip">Business Direction</p>
        <el-select
            v-model="value1"
            multiple
            placeholder="Select"
            style="width: 400px"
            size="large"

        >
          <el-option
              v-for="item in options"
              :key="item.value"
              :label="item.label"
              :value="item.value"

          />
        </el-select>
      </div >

      <div class="people-select-container">
        <span class="people-tip">What describe you best?</span>
        <div class="people-select-main">
          <div :class="{'selected' : activeId === i.id}" v-for="(i,key) in peopleList" class="item" :key="key" @click="activeId = i.id">
            <span>{{i.value}}</span>
          </div>


        </div>

      </div>
    </div>

  </div>
</template>
<script setup>
import {ref} from "vue";

const labelRef = ref(null)
console.log(labelRef.value)
const activeId = ref('1')
const peopleList = [
  {
    id: 1,
    value: 'Only me'
  },
  {
    id: 2,
    value: '2 - 5'
  },
  {
    id: 3,
    value: '6 - 10'
  },
  {
    id: 4,
    value: '11 - 20'
  },
  {
    id: 5,
    value: '21 - 40'
  },
  {
    id: 6,
    value: '41 - 50'
  }
  ,
  {
    id: 7,
    value: '51 - 100'
  }
  ,
  {
    id: 8,
    value: '101 - 500'
  }
]
</script>

<style scoped lang="scss">
.step3-container{
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  height: 100%;
  .container{
    margin-top: 20px;
    padding: 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .step-number{
    display: inline-block;
    color: rgb( 63,140,255);
    font-weight: 500;
  }
  .step-title{
    margin-top: 5px;
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 1px;
  }
  .step3-select-container{
    margin-top: 50px;
    :deep(.el-input__wrapper){
      border-radius: 8px;
      border: 1px solid #DCE3F1;
    }
    :deep(.el-select__wrapper){
      border-radius: 8px;
      border: 1px solid #DCE3F1;
    }
    .select-tip{
      font-size: 14px;
      font-weight: 500;
      color: #7D8592;

    }
  }
  .step3-radio-container{
    width: 100%;
    display: flex;
    align-items: center;
    justify-content:space-between;
    margin-top: 20px;
    .radio-tip{
      font-size: 14px;
      font-weight: 500;
      color: #7D8592;
    }
  }
  .people-select-container{
    margin-top: 20px;
    width: 100%;
    display: flex;
    flex-direction: column;
    .people-tip{
      font-size: 14px;
      font-weight: 500;
      color: #7D8592;
    }
    .people-select-main{

      input[type="radio"]:checked + .label{
        background-color: #3F8CFF;
        color: #fff;
      }
      display: grid;
      grid-template-columns: repeat(4,1fr);
      grid-gap: 10px ;
      .item{
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
        height: 100%;
        border: 1px solid #DCE3F1;
        border-radius: 7px;
        color: #DCE3F1;
        min-height: 40px;
        background-color: #fff;
        transition: all .3s;
        font-size: 13px;
        &:hover {
          background-color: #3F8CFF;
          color: #fff;
        }
      }
      .selected{
        background-color: #3F8CFF;
        color: #fff;
      }
    }

  }
}
</style>
